public class Coder {
    // 姓名
    private String name;
    // 工号
    private int id;
    //工资
    private double salary;

    Coder(String name,int id,double salary){
        this.name = name;
        this.id = id;
        this.salary = salary;
    }

    Coder(){}


    public void setName(String name, int id, double salary) {
        this.name = name;
        this.id = id;
        this.salary = salary;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public String getName() {
        return name;
    }

    public int getId() {
        return id;
    }

    public double getSalary() {
        return salary;
    }

    public void work(){
        System.out.println("工号为"+this.id+"基本为工资为"+this.salary+"的程序员"+this.name+"正在努力写着代码");
    }
    public static void main(String[] args){
        Coder m = new Coder("方便",135,10000);
        m.work();
    }
}
